package font;


public class CharInfo implements RegionAble
{
	public int m_x;
	public int m_y;
	public int m_w;
	public int m_h;
	
	public char m_char;
	public int m_fontW;
	public Font m_font;
	
	public CharInfo(Font font, char ch)
	{
		m_font = font;
		m_char = ch;
		m_x = -1;
		m_y = -1;
		m_w = 0;
		m_h = 0;
	}

	public int getWidth()
	{
		return m_w;
	}

	public int getHeight() 
	{
		return m_h;
	}
	
	public void setCoo(Region r)
	{
		m_x = r.m_left;
		m_y = r.m_top;
	}
	
	public int getArea()
	{
		return m_w * m_h;
	}
}
